package com.sky.mapper;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminOrderMapper {
    List<OrderVO> selectByPage(OrdersPageQueryDTO ordersPageQueryDTO);


    @Select("select count(*) from orders where status = #{confirmed}")
    Integer getCountByStatus(Integer confirmed);
}
